package com.ruoyi.asms.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 故障信息对象 asms_fault
 * 
 * @author yfkj
 * @date 2021-11-01
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AsmsFault extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    /** 故障信息主键 */
    @TableField(exist = true)
    @TableId(type= IdType.AUTO)
    @ApiModelProperty(value =  "${comment}")
    private Long faultId;
    /** 故障报修人 */
    @Excel(name = "故障报修人")
    @TableField(exist = true)
    @ApiModelProperty(value =  "故障报修人")
    private Long faultFindUserId;
    /** 故障发生地点外键 */
    @Excel(name = "故障发生地点外键")
    @TableField(exist = true)
    @ApiModelProperty(value =  "故障发生地点外键")
    private Long addressId;

    public static final String FAULT_ID="fault_id";
    public static final String FAULT_FIND_USER_ID="fault_find_user_id";
    public static final String ADDRESS_ID="address_id";

    public static final String CREATE_BY="create_by";
    public static final String CREATE_TIME="create_time";
    public static final String UPDATE_BY="update_by";
    public static final String UPDATE_TIME="update_time";
    public static final String REMARK="remark";

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("faultId", getFaultId())
            .append("faultFindUserId", getFaultFindUserId())

            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())

            .toString();
    }
}
